Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 3 - Page Formatting and Dialog Box Customization / Page Formatting and Dialog Box Customization Reference
Functions / Creating and Manipulating Format Objects


GXNewFormat

You can use the GXNewFormat function to create a format object.

gxFormat GXNewFormat (gxJob aJob);
aJob
A reference to the job object to be associated with the new format object.
function result
A reference to a format object.
DESCRIPTION
The GXNewFormat function creates a new format object and copies the default format for the specified job object. The GXNewFormat function sets the owner count to 1. You need to call this function each time a user creates a new format for a page in a document.

RESULT CODES
gxSegmentLoadFailedErrA required code segment for QuickDraw GX printing features failed to load due to low memory or disk errors.
gxPaperTypeNotFoundThe default paper-type object cannot be located.
SEE ALSO
Listing 3-9 on page 3-42 shows how to use the GXNewFormat function to create a format object.

To dispose of a format object, see the description of the GXDisposeFormat function in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help